package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

/**
 * @ClassName DishService
 * @Description 菜品业务层接口
 * @Author sld
 * @Date 2024/7/5 9:51
 * Version 1.0
 **/
public interface DishService {
    PageResult page(DishPageQueryDTO dishPageQueryDTO);

    void save(DishDTO dishDTO);

    DishDTO getById(Long id);

    void update(DishDTO dishDTO);

    void updateStatus(Integer status, Long id);

    void delete(List<Long> ids);

    /**
     * 条件查询菜品和口味
     *
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);
}
